﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace SmartBusinessCardWCF.Servers
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码和配置文件中的接口名“IWXServer”。
    [ServiceContract]
    public interface IWXServer
    {
        [OperationContract]
        [WebGet(UriTemplate = "/DoWork", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        void DoWork();

        [OperationContract]
        //[WebGet(UriTemplate = "getdata?f={format}")]
        [WebGet(UriTemplate = "/WXPost", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        string WXPost(string serviceCode, object postObject);
    }
}
